﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:CharacterCreation.Controls">

    <Style TargetType="local:ListBox">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ListBox">
                    <Grid>

                        <!--Items-->
                        <Border Background="{TemplateBinding Background}">
                            <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" BorderThickness="0" BorderBrush="Transparent">
                                <ItemsPresenter Margin="2" />
                            </ScrollViewer>
                        </Border>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>





    <Style TargetType="local:ListBoxItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ListBoxItem">
                    <Grid x:Name="grid">
                        <ContentPresenter x:Name="contentPresenter" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


</ResourceDictionary>
